<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>测试Vue的函数</title>
		<script src="./js/vue.js">
			
		</script>
	</head>
	<body>
		<div id="app">
			<h2>{{show()}}</h2>
			<h2>{{sum(2,999)}}</h2>
		</div>
		<script>
			
			new Vue({
				el:"#app",
				data:{
					
				},
				methods:{
					show:function(){
						console.log('hello vue'),
						alert('hello vue')
					},
					sysout:function(color){
						console.log(color)
					},
					sum:function(a,b){
						var a=prompt("输入a")
						var b=prompt("输入b")
						alert("a与b之和为:"+(a+b))
					}
				}
			})
			
		</script>
	</body>
</html>
